<?php 
    $image_properties = array(
        'src' => 'system/public/img/unknown.png',
        'alt' => '',
        'class' => 'post_images',
        'width' => '70',
        'height' => '70',
        'title' => '',
        'rel' => 'lightbox',
        ); 
?>
<h1 class="orange">Reviews</h1>
<?php 
    foreach($comment_list->result() as $rowcomment)
    { 
?>
    <div class="comment_item">
        <div class="comment_image">            
<?php 
/*
            if($rowcomment->member_image !=null)
            { 
 */
                echo img($image_properties, TRUE);                            
/*                
            } 
*/
?>
        </div>
        <div class="comment_text">
            <div class="comment_head">
                <strong>
<?php
                    echo $rowcomment->member_name;
?>
                </strong>
            </div>            
            <div style="clear: both;">
            </div>
            <div style="padding: 10px 0px;">
<?php 
                echo $rowcomment->comment;
?>
            </div>
        </div>
    </div>
<?php             
    } 

    if($this->session->userdata('validated'))
    { 
    echo form_open(base_url()."index.php/comment/insert/"); 
    echo form_hidden('car_id', $this->uri->segment(3));
?>    
        <div style="padding-top: 10px; clear: both; border-top: 1px solid #eee;">
            <p>
                Your comment:
            </p>
            <textarea rows="4" cols="55" value="" name="comment_car" style="width: 100%;"></textarea>        
            <p style="padding-top: 10px;">
                <input type="submit" class="register" value="Comment" />
            </p>
        </div>
<?php 
    echo form_close();
    }
?>